package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.BaseCategoryQueryDto;
import com.kaili.basic.pojo.entity.BaseAllCategory;
import com.kaili.basic.pojo.entity.BaseCategory;
import com.kaili.basic.pojo.entity.BaseCategoryExport;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseCategoryMapper {

    void addCategory(BaseCategory category);

    void deleteCategory(Long categoryId);

    void updateCategory(BaseCategory category);

    List<BaseCategory> queryCategory(Pagination page, BaseCategoryQueryDto category);

    List<BaseCategoryExport> queryCategoryExport(BaseCategoryQueryDto queryDto);

    List<BaseAllCategory> queryAllCategory();

    String getCategoryCode();
}
